package com.lagou.util;

import java.io.IOException;

/**
 * @author HuanyuZhou
 * @date 2020/6/8 10:20
 */
public interface Serializer {
    //编码方法
    byte[] serialize(Object object) throws IOException;
    //解码方法
    <T> T deserialize(Class<T> clazz,byte[] bytes) throws IOException;
}
